package com.health.tools;

import android.util.Log;

public class DeviceUtil {

    /**
     * 判断设备名称
     * @return
     */
    public static boolean compareDeviceName() {
        String[] names = {"U8","Android","M8"};
        String BRAND = android.os.Build.BRAND;
        Log.e("xiaoxin", "compareDeviceName: "+BRAND );
        for (String name : names) {
            if (name.equals(BRAND)) {
                return true;
            }
        }
        return false;
    }
}
